/*
 * Copyright (c) 2010-2013 Ruben Chakhmakhchyan. All rights reserved.
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Eclipse Public License
 * Version 1.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * http://opensource.org/licenses/EPL-1.0 and read it before using this file.
 */

#pragma once

#include "plugin_model_impl.h"

//#define _TEST

#ifdef _WINDOWS

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

// windows
#include <windows.h>
#include <windowsx.h>

// gdiplus
#include <objidl.h>
#include <gdiplus.h>

using namespace Gdiplus;

#endif

#include "twain_model_impl.h"
#include "wia_model_impl.h"
#include "net.h"
#include "url.h"

#include "zlib_encoder.h"

#include "list.h"
#include "pdf.h"

#include "ccitt.h"
#include "jpeg_encoder.h"
#include "bmp_encoder.h"

#include "bit_stream.h"

#include "strings.h"

#include "base64.h"
#include "image_resize.h"
#include "dib.h"

#include <math.h>
#include "math2.h"

#include "result_codes.h"


#define APP_PRODUCTNAME "Skan Extension" //project code-name
#define APP_PRODUCTVERSION "0.6.1"


char* getMimeType( DocumentFormat format );

void doScan( void* arg );
void doCompression( void* arg );
